import BmsDetail from '../../pages/siteDeviceDetails/components/bmsDetail.vue';
import request from '../request';
// 站点数据概括
export const getBaseData = (params) => {
	return request({
		url: '/vilion/home/baseData',
		method: 'GET',
		data: params
	});
};

// 系统消息数
export const getSystemMessageNoReadStateNumber = (params) => {
	return request({
		url: '/vilion/home/getSystemMessageNoReadStateNumber',
		method: 'GET',
		data: params
	});
};

export const updateSystemMessageState = systemMessageId => {
	return request({
		url: `/vilion/home/updateSystemMessageState?systemMessageId=${systemMessageId}`,
		method: 'PUT'
	});
}

// 系统消息列表
export const getSystemMessage = (current, limit = 15) => {
	return request({
		url: '/vilion/home/getSystemMessage',
		method: 'GET',
		data: {
			current,
			limit
		}
	});
};

// 电量Echarts
export const electricityCurve = (params) => {
	return request({
		url: '/vilion/home/electricityCurve',
		method: 'GET',
		data: params
	});
};
// 收益echarts
export const profitCurve = (params) => {
	return request({
		url: '/vilion/home/profitCurve',
		method: 'GET',
		data: params
	});
};


// 电量统计
export const statistics = (params) => {
	return request({
		url: '/vilion/home/electricityStatistics',
		method: 'GET',
		data: params
	});
};

export const profitStatistics = (params) => {
	return request({
		url: '/vilion/home/profitStatistics',
		method: 'GET',
		data: params
	});
};




// 详情

// Bms

// 


export const getBmsDetailData = (params) => {
	return request({
		url: '/vilion/deviceDetail/queryBmsModuleData',
		method: 'GET',
		data: params
	});
};